package com.culture.bootdemo.model.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author wen
 * @date 2019/11/15 14:51
 * @Description
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelIgnoreUnannotated//该字段意思：若字段没有ExcelProperty注解，则不导出字段
@ContentRowHeight(15)//excel内容的行高
@HeadRowHeight(20)//excel内容的行高
public class WriteData {

    @ColumnWidth(30)//当前列的宽度
    @ExcelProperty("姓名")
    private Integer name;

    @ExcelProperty("日期")
    private Date date;

//    @ExcelProperty("数量")
    private Integer amount;

    @ExcelProperty("电话")
    private String phone;

}
